package com.encyclopedia.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;


@Getter
@Setter
@Accessors(chain = true)
@TableName("plant_crop")
public class Crop implements Serializable {
    @TableId("crop_id")
    private Integer cropId;
    @TableField("crop_name")
    private String cropName;
    private List<CropRelation> cropRelations;

    @Override
    public String toString() {
        return "Crop{" +
                "cropId=" + cropId +
                ", cropName='" + cropName + '\'' +
                ", cropRelations=" + cropRelations +
                '}';
    }
}
